const path = require('path');
const express = require('express');

let app = express();

//构建
const TeacherRouter = express.Router();

//引入控制器
const TeacherController = require(path.join(__dirname,"../controllers/TeacherController"));

//班级列表页面
TeacherRouter.get('/teacherList',TeacherController.teacherList);

//班级编辑页面
TeacherRouter.get('/teacherEdit',TeacherController.teacherEdit);

//班级编辑post处理
TeacherRouter.post('/teacherEdit',TeacherController.teacherEditForm);

//班级删除
TeacherRouter.get('/teacherDelete',TeacherController.teacherDelete);

module.exports = TeacherRouter;